package com.java.main.bitwiseoperation;

/**
 * <p>
 *  位运算
 * </p>
 *
 * @author gzj
 * @since 2022/6/6
 */
public class BitwiseOperation {

    public static void main(String[] args) {
//        0 1 10 11 100 101 110 111 1000
//        System.out.println(2<<2);

        int a=0;
        a(a);
        System.out.println("a = " + a);
        String[] b = new String[]{"0"};
        b(b);
        System.out.println("b = " +b[0]);

    }

    public static void a(int a){
        a=1;
        System.out.println(a);
    }

    public static void b(String[] b){
        b[0]="1";
        System.out.println(b[0]);
    }
}
